﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucLogIn.ascx.cs" Inherits="ucControl_ucLogIn" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<style type="text/css">
    .login, .register
    {
        border: 1px solid #CCCCCC;
        height: 420px;
    }
    .log
    {
        background: none repeat scroll 0 0 #F3AB25;
        color: oldlace;
        font-weight: bold;
        padding: 13px 5px 12px 10px;
        text-transform: uppercase;
    }
    .log1
    {
        padding-left: 10px;
        padding-top: 10px;
    }
    .log2
    {
        padding-left: 10px;
    }
    input
    {
        border: 2px solid #ff9900;
        border-radius: 7px 7px 7px 7px;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 5px;
        height: 26px;
    }
</style>
<div id="right">
    <div class="login" style="float: left; width: 47%">
        <div class="log">
            ĐĂNG NHẬP</div>
        <div class="log1">
            Bạn đã có tài khoản, vui lòng đăng nhập vào đây.</div>
        <table class="log2" width="100%" border="0">
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="lbmsLogin" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="align">
                    Email (*)
                </td>
                <td>
                    <asp:TextBox ID="txtemailLogin" runat="server" Width="195px" Height="25px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                        ValidationGroup="Login" ControlToValidate="txtemailLogin"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="align">
                    Mật khẩu (*)
                </td>
                <td>
                    <asp:TextBox ID="txtpass" runat="server" Width="195px" TextMode="Password" Height="25px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                        ValidationGroup="Login" ControlToValidate="txtpass"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <asp:Button ID="btnLogin" runat="server" Text="ĐĂNG NHẬP" CssClass="art-button" 
                                ValidationGroup="Login" onclick="btnLogin_Click"  />
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnLogin" EventName="Click" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                        <ProgressTemplate>
                            <asp:Image ID="imgLoading" runat="server" ToolTip="Loading..." ImageUrl="~/Shopping/images/loadingAnimation.gif"
                                Style="border-width: 0px;" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </td>
            </tr>
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="align">
                    &nbsp;
                </td>
                <td>
                    &nbsp;&nbsp;
                </td>
            </tr>
        </table>
    </div>
    <div class="register" style="float: right; width: 50%">
        <div class="log">
            ĐĂNG KÝ</div>
        <div class="log1">
            Bạn có thể đăng ký mới một tài khoản tại đây.</div>
        <div>
            <table class="log2" width="100%" border="0">
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Label ID="lblMessage" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="align" style="width: 100px">
                        Họ
                        <asp:Label ID="lbTen" runat="server" Text="Tên"> (*)</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txt_fistname" runat="server" Width="195px" Height="25px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                        Tên
                        <asp:Label ID="lbHo" runat="server" Text="Họ"> (*)</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="txt_lastname" runat="server" Width="195px" Height="25px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                        <asp:Label ID="lbAdd" runat="server" Text="Địa chỉ"></asp:Label>(*)
                    </td>
                    <td>
                        <asp:TextBox ID="txt_address" runat="server" Width="195px" Height="25px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                        <asp:Label ID="lbPhone" runat="server" Text="Điện thoại"></asp:Label>(*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtmobilephone" runat="server" Width="195px" Height="25px" ValidationGroup="Register"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtmobilephone"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                        Email (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txt_email" runat="server" Width="195px" Height="25px" ValidationGroup="Register"></asp:TextBox>
                        
                        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txt_email"
                            runat="server" ErrorMessage="*" SetFocusOnError="True" Display="Static" ValidationGroup="Register"></asp:RequiredFieldValidator>&nbsp;
                        </td>
                </tr>
                <tr>
                    <td class="align">
                        <asp:Label ID="lbPass_R" runat="server" Text="Mật khẩu"></asp:Label> (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" Width="195px" Height="25px" TextMode="Password" ValidationGroup="Register"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="*"
                            ValidationGroup="Register" ControlToValidate="txtPassword"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="align">
                    </td>
                    <td>
                        <asp:Button ID="btnRegister" runat="server" Text="ĐĂNG KÝ" 
                            CssClass="art-button" ValidationGroup="Register" 
                            onclick="btnRegister_Click" />
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:UpdateProgress ID="UpdateProgress2" runat="server">
                            <ProgressTemplate>
                                <asp:Image ID="imgLoading1" runat="server" ToolTip="Loading..." ImageUrl="~/Shopping/images/loadingAnimation.gif"
                                    Style="border-width: 0px;" />
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        
                       
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>